<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${tb.name}</title>
</head>
<body>

<!-- 表单 -->
<form action="/${module}/${entity}/add.do">

<#list listEdit as fd>
<!-- editor -->
<#if fd.htmlType == 'editor'>
${fd.htmlLabel}:<textarea rows="5" cols="5" class="editor" name="${fd.javaName}"></textarea>
<br/>

<!-- time -->
<#elseif fd.htmlType == 'time'>
${fd.htmlLabel}:<input name="${fd.javaName}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" size="20" maxlength="30"/>
<br/>

<!-- radio -->
<#elseif fd.htmlType == 'radio'>
${fd.htmlLabel}:
<#list fd.htmlMap?keys as key>
<label class="radio" for="">
	<input type="radio" name="${fd.javaName}" value="${key}">${fd.htmlMap[key]}
</label>
</#list>
<br/>

<!-- select -->
<#elseif fd.htmlType == 'select'>
${fd.htmlLabel}:
<select name="${fd.javaName}">
	<#list fd.htmlMap?keys as key>
	<option value="${key}">${fd.htmlMap[key]}</option>
	</#list>
</select>
<br/>

<!-- checkbox -->
<#elseif fd.htmlType == 'checkbox'>
${fd.htmlLabel}:
<#list fd.htmlMap?keys as key>
<label class="checkbox" for="">
	<input type="checkbox" name="${fd.javaName}" value="${key}">${fd.htmlMap[key]}
</label>
</#list>
<br/>

<!-- input -->
<#else>
${fd.htmlLabel}:
<input name="${fd.name}" type="text" />
<br/>


</#if>


</#list> 

</form>

</body>
</html>